Communications Process Flow
Each communication results in the communication being sent to one target. Multiple targets, such as sending an email to all subscriptions on an , is not currently supported. The main avenue for creating communciations in are Comms Requests, which are entries in the CommsRequestHeader table.
Click through the slideshow below for an overview of the communications process. The sections that follow the slideshow go into the process in more detail:
Step 1: A communication request is triggered
The Communications process starts when a communication request is triggered. A trigger can be:
- Internal - for example a CMP workflow event, raised either manually or automatically.
- External - a request from an external system. A communication request can be created automatically on receipt of a notification from an external system.
When a trigger is invoked, CMP creates an entry in the core table in Communications, the CommsRequestHeader table.
When a Workflow Event is created, irrespective on whether the WhenToCreate is set to OnCreate or OnResolve, an entry in created in the CommsRequestHeader table.
For more information, see Comms Process Flow: Triggers
Step 2: Communication details are gathered
When an entry is created in the commsRequestHeader table, the Comms Monitor Job is triggered to process the CommsRequestHeader and produce a commsRequestDetail entry. This job:
For more information, see Comms Process Flow: Gather Details
Step 3: SMS, push and external notifications are sent
After the Comms Monitor Job has completed, dedicated daemons pick up the requests to distribute them to the destination:
- Comms Push To Handset
- Comms SMS To Handset daemon
- Push To External daemon (Extract Comms to Generic Format daemon)
For more information, see Comms Process Flow: Send SMS, Push and External Notifications.
Step 4: Letters and emails are created and sent
Email and letter communications require additional processing to merge data from default fields gathered from CMP with document templates to generate the required document type. The Comms Monitor job gathers the data; the Comms Email Monitor and the Comms Letter Monitor jobs merge the data.
The Comms Email Monitor and Comms Letter Monitor jobs are triggered automatically when the Comms Monitor job has finished gathering data for Comms Requests relating to emails or letters. For more information, see Comms Process Flow: Create and Send Letters and Emails
These jobs uses external frameworks - for example, Velocity and Prince - to generate documents. Generated documents are subsequently detected by the following downstream daemons for transmission to the :
- Transmission Comms to Print Bureau daemon (Letter distribution)
- Transmission Comms to Email daemon (Email distribution)
For more information, see About Email and Letter Templates
Step 5: Letters and Emails are Stored
This is a distinct step carried out by the Comms Transmission to Document Storage Daemon. This allows the documents can be placed into storage on any machine, for example in systems such as Amazon S3 or on a machine via . Storing the documents in a long-term storage directory allows them to be viewed in .
For more information see Comms Process Flow: Store Letters and Emails.
External Systems Update Communications Status
A daemon allows external systems to update the status in CMP of communications that were sent externally for processing and/or distribution. For more information, see External Comms Status Updates.